package com.example.tnot.api.response;

public class BaseResponse {
    private int code;
    private String message;
    private Object data;

    // Getter和Setter
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    // 常用判断方法
    public boolean isSuccess() {
        // 假设0为成功状态码，可根据实际业务调整
        return code == 0;
    }
}
